<template>
  <el-dialog :title="title"  :visible="visible" :close-on-click-modal="false"
             :before-close="handleClose" width="300px">

    <div style="300px;text-align:left;text-indent:28px">
        <span>在该讨论区发出的帖子内容只能与学习相关，禁止一切辱骂，传播黄赌毒的言论等，违规者、性质恶劣者将对账号进行停封惩罚。</span>
    </div>
    <span slot="footer" class="dialog-footer">
      <el-button type="text" @click="handleClose">关闭</el-button>
    </span>
    
  </el-dialog>
</template>

<script>
  //import {getAllRoleList} from "../../../api/modules/role";
  
  export default {
    name: "edit",
    props: {
      visible: {
        type: Boolean
      },
      title: {
        type: String,
        default: '讨论区规则'
      },

      defaultFormData: {
        type: Object
      },
    },
    data() {
      return {
       
      
        formData: {
          discussType: '',
          discussTitle: '',
          discussContent:'',
          nickname:'',
          courseId:''
        },
        address:[],
        refresh: false
      }
    },
    mounted() {
    },
    methods: {
      
      handleChange(value) {
        console.log(value);
      },
      handleClose() {
        this.$emit('close', this.refresh)
      },
  }
}
</script>

<style scoped>

</style>
